package io.github.uicdb.et.item.weapon;

import com.google.common.collect.ImmutableMap;
import io.github.uicdb.et.ModElements;
import io.github.uicdb.et.element.BasicElement;
import io.github.uicdb.et.item_data.ItemElementData;
import net.minecraft.core.Holder;
import net.minecraft.core.component.DataComponents;
import net.minecraft.world.item.SwordItem;
import net.minecraft.world.item.Tiers;
import org.jetbrains.annotations.NotNull;

public class Salamandra extends ExtraDamageWeapon {
    public Salamandra() {
        super(new Properties().durability(1250).component(DataComponents.ATTRIBUTE_MODIFIERS, SwordItem.createAttributes(
                Tiers.NETHERITE, 2, 0.6f
        )), new ItemElementData(ModElements.FIRE.getElemental().getElementHolder(), 25, 40));
    }

    @Override
    public void appendElementMap(ImmutableMap.@NotNull Builder<Holder<BasicElement>, Float> builder) {
        builder.put(ModElements.FIRE.getElemental().getElementHolder(), 0.07f);
    }
}
